#ifndef CHECKBENDEDELEMENTS_H
#define CHECKBENDEDELEMENTS_H

#include "geometry/vector3d.h"

/***/
void CheckBendedElements(
        QMap<QString, QMap<QString, QList<Vector3D*>*>*>
        *referenceVectorsOfElements) {
    QList <QString> bendedElementNames = referenceVectorsOfElements->keys();
    for (int i = 0; i < referenceVectorsOfElements->count(); i++) {
        QString elementName = bendedElementNames.at(i);
        qDebug() <<"Element name: " << elementName;
        QMap<QString, QList<Vector3D *> *> *referenceVectorOfSingleElement
                = referenceVectorsOfElements->value(elementName);
        QList <QString> nodeNames = referenceVectorOfSingleElement->keys();

        for (int n = 0; n < nodeNames.count(); n++) {
            QList<Vector3D *> *singleNodeVectors = referenceVectorOfSingleElement->value(nodeNames.at(n));
            qDebug() << "Node" << n + 1 << ": " << nodeNames.at(n) << " Count: " << singleNodeVectors->length();
            for (int v = 0; v < singleNodeVectors->size(); v++) {
                Vector3D *sVector = singleNodeVectors->at(v);
                sVector->printSingleDirection();
            }
        }

        qDebug() << "--Single element ends.---";

    }
};

#endif // CHECKBENDEDELEMENTS_H
